package com.black.cat.jvm.instructions.stack.pop;

import com.black.cat.jvm.instructions.base.InstructionNoOperands;
import com.black.cat.jvm.rtda.Frame;
import com.black.cat.jvm.rtda.OperandStack;

/**
 * @Author blackcat
 * @create 2021/8/13 15:16
 * @version: 1.0
 * @description:pop2指令 double和long变量在操作数栈中占据两个位置弹出
 */

public class POP2 extends InstructionNoOperands {

    @Override
    public void execute(Frame frame) {
        OperandStack stack = frame.operandStack();
        stack.popSlot();
        stack.popSlot();
    }

}
